package com.siblings.loan.config

import com.siblings.loan.utils.helper.SharedHelper

/**
 * Siblings
 * @Author wwdeng
 * @CreateTime: 2024/7/4 19:25
 * @Annotation：APP 配置文件
 */
object SibConfigs {

    /**
     * APP 名称
     */
    const val SIB_APPNAME = "SIBLINGS"

    /**
     * 包名
     */
    const val SIB_PACKAGENANME = "com.Siblings.loanservice"

    /**
     * 加解密
     */
    const val SIB_AES_KEY = "c1xbQazj8Ad0JjKv"
    const val SIB_AES_IV = "u4cpxXJ9HeoVGimc"

    /**
     * Adjust
     */
    const val SIB_ADJ_TOKEN = "ka3wnflw0934"
    const val SIB_ADJ_EVENT_REGISTER = "hptxoq"
    const val SIB_ADJ_EVENT_APPLY = "jl4qyg"

    /**
     * 是否是法语地区
     *  desc：地区转发（timeZone） 以 fcfa、xaf、senegal 结尾，则定义为法语地区
     */
    fun isFrench(): Boolean{
        val timeZone = SharedHelper.getSibSPString(SharedHelper.SIB_SPKEY.SIBLINGS_TIMEZONE)
        return timeZone.endsWith("fcfa") || timeZone.endsWith("xaf") || timeZone.endsWith("senegal")
    }

}